package com.powervision.mvvmdemo.ui.repository

import com.powervision.http.base.BaseRepository
import com.powervision.http.entity.ApiResponse
import com.powervision.mvvmdemo.ui.http.RetrofitClient
import com.powervision.mvvmdemo.ui.model.NaviModel

/**
 * @auth: njb
 * @date: 2021/12/20 11:56
 * @desc: 描述
 */
class NaviRepository :BaseRepository(){
    private val mNaviRepository by lazy {
        RetrofitClient.service
    }

    suspend fun navi():ApiResponse<List<NaviModel>>{
        return executeHttp {
            mNaviRepository.nav()
        }
    }


}